//
//  AboutUsCell.m
//  SuperRadio
//
//  Created by GYRu on 14-12-19.
//  Copyright (c) 2014年 三个臭皮匠. All rights reserved.
//

#import "AboutUsCell.h"

@implementation AboutUsCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.nameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
        
        self.numLabel = [[UILabel alloc] init];
        self.numLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.numLabel];
        [_numLabel release];
        
        self.rubbish = [[UIImageView alloc] init];
        [self.contentView addSubview:self.rubbish];
        [_rubbish release];
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    NSInteger width = self.contentView.bounds.size.width / 6;
    NSInteger height = self.contentView.bounds.size.height - 10;
    
    self.nameLabel.frame = CGRectMake(20, 5, width * 2, height);
    self.numLabel.frame = CGRectMake(width * 2, 5, width * 3, height);
    self.rubbish.frame = CGRectMake(width * 2 + width * 3, 15, 20, 20);
    
}



- (void)dealloc
{
    [_rubbish release];
    [_numLabel release];
    [_nameLabel release];
    
    [super dealloc];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
